test that events are fired