Properly format and indent test output