Fix the tests to deal safely with use of tls.tcl