New query tests.