Test for failure exception