invalid queries test cases