add test for extractor. Change extract method to execute