tests: first iteration

Adding some unitttest. Mostly tcl scripts driven by a python
unittest main program.