Add some coverage for authentication and authorization for websocket and socket.io