Added some additional checks in WebSocket node test.