Added tests for SocketClient