Test to delete dialog before parent items