unit test for websocket requiring authentication