Test with invalid input to test return codes