Add test for the websocket connection-refused fix.