Added nested exception test for exit exceptions