adding integration tests for events