Adds unit test to metadata extractor classes Fixes issues found while testing
This allows determing what the runtime metadata will be for a class without having to loading and running the corresponding .js file.