Wrote out a test helper. Trying to work out how to make it so that tests don't create a real websocket.