Add a test for exception in websocket callbacks.