closed #2450: Fixing a bug that HttpClientTest crashes on Mac

And adding WebsocketTest and SocketIOTest for Mac port.