Canonify output of a unit test.