Test throwing of errors with throwException