Added test for invalid input