test with events