Rewrite tests to not use Tcl substitution.