Added unit test for Extractor