Added unit tests for tclib.