Moved xpub xsub socket creation

Creating xpub and xsub sockets after version check, not in beforeEach