test for invalid search