Improved unit test error reporting as it was kind of useless