made WebSocket tests a little more reliable