refactored tests to attach peer and socket to nodetron object, rather than return them
refactored peerSetup to attach socket and peer to nodetron, rather than return them