Testing when the program dies