Added tests for misc.tcl/prepare