Fix websocket/upgrade tests

As requested, fix tests on 0.8.24 and 0.10.10.