Added a test case for failure states.