[Runtime Model] Add unittest for registered events.