Tests that event handler is called in correct world.