fix query extractor test