Zmq

update tests and fix bug discovered with tests