feat(Query/extractionFunction): add validations
test(Query/extractionFunction): add test suite