Fix for events test case