Mock the socket during the ZMQRelay tests