added test for bad input