Adding test for empty query warning fix