Update event.js

Partial test coverage of modifying the default events, following #640
Merge pull request #657 from stephengreentree/patch-1

Add test suite for the events option