check if event handlers are supported and fix refactor error
check if event handlers are supported and fix refactor error

ralic/testrtc,ralic/testrtc,ralic/testrtc,webrtc/testrtc,ralic/testrtc,webrtc/testrtc