Added a test for synchronous event management