Added test for metadata extractor.