Another unit test for events

Catches the issue missed in pull req #8961