Tests for `upgrade_websocket`