add simple test for events

simple changes I had in my branch, better commit before someone make bigger changes