I think Mathieu is right. Copying the complete message to a unit test makes no sense. Someone might fix typos, the string representation of the estimator could change etc.