Add InMemoryEventListener for testing.