first pass at some tests for utils and hardened eventOf

eventOf no doesn't allow the objects passed to override the action
property.  wrote some initial tests for eventOf and for winIdFromTab.