add tests for queries in mock DBs