"""Tests for the websocket API."""