adding test for addEvent
implementing addEntry method