Added an unit test for the failures