Add testing of FormatUtil errorMessage building