better tests for WebSocket handshake