testWithBlankQuery implementation