TcpClient adapter and UnitTests