adds test cases for exit event