added test for invalid select