make session.tcpconnection field private
mock listen and close methods on tcp server and peerconnection rather than spying on socks server methods