test for bad input