cleaned up tests and zmq API, no known problems