SocketConnection tests