formatting output from test