Fix test reporting on html failure