created automated test for events