fix tests involving bind/connect

Binding the SUB socket and connecting with the PUB socket worked with ZeroMQ
2.2, but fails in ZeroMQ 3.2.