It should be "ws.onclose", not "ws.close". As a result, tests take longer (there are 2 or 3 second timers meant to make them end), and lack some of the output.
Created attachment 43085 [details] proposed patch
Comment on attachment 43085 [details] proposed patch Thanks.
Committed r50892.