Updated test coverage for searchQuery