[tests/events] added test case for jsdom#368