adding unit tests for textproc.tcl