Adding unit tests for SocketConnector and SocketListener