Refactor event manager to use lazy initialization of predefined events.
Update event manager test plugin.