added tests for event callbacks