unit tests for output.tcl