Added tests for invalid input conditions