Add test for events