Testing the connection class with a real socket server.