Added fail method to tests, and improved output readability.