Zmq

- add and update unit tests in TMS
- refactoring in TMS server