generate throws tests