Zmq

- fix cppcheck error
- change "/tmp" to boost::filesystem::temp_directory_path()
- add Unit tests for TMS