Corrected the test for the fail() function.
Updated the tests.