add a query test.