Modify calls to format_error/2 to use the correct order for arguments
Beautify unit test output