reformatted tests to log errors