support for events in tests