echoServer: handling socket and the echo request with test