Add a test for failure case