the query service and test client