adding addEvent test + usage example