tests(query): framing the query tests up