Add test for failure case