Added test for events
Implemeted Events