Update tests to remove socket.off.

Apparently socket.io does not support this function.
Stop using socket.off.