test output formatting