[Bug 3606387]: Fix isolation of test scan-7.4.
Also updated scan.test to use tcltest 2 properly.
[Bug 3606387]: Fix isolation of test scan-7.4.
[Bug 3606390]: Fix isolation of test string-6.37.
[Bug 3606390]: Fix isolation of test string-6.37.