adding tests for error formatting of errors class