adding integration tests for event plugin