Added more tests to handle simple failure scenarios.