make test for tcl
[scripts/functions] refactor download