Added a test for the fail() function.