Mocked server side socket.io and added client side unit tests for socket.io events.