added tester for query