Properly format the output for tests