Improved formatting of test output