Unit-tests for queries.