test coverage for queries