Add exception throw test