reformat test error messages