Added testcase for findQuery