update event.js and test/event.js
update event test case