test format_errors function in box.utility module