Issue #3427: add event manager test and modify event registering with new event manager

Add event manager test and modify event registering with new event manager