tests for events