test the query