[idl-generator] Add test case for event handler

1. Add demoevent handler
2. Add reference of base to impl class to broadcast event