Add onthrow test suit