add query test case