fix except.throwException assert in test