Test for invalid input works