Zmq

- update Unit tests
- correct bug to retrive error code
- add a TODO to describe the error codes