Change the tests for websocket support
Fix Uint8Array usage