adding unit tests for events, not working atm