tests for output file