format output for test