Refactor test output.