Made zmq tests more reliable