refactored ControllerTest for new event system
fixed emit order