Added test for addEvent event.