tests for event generation