Adding more tests for events and callbacks