add simple test for events