try/except test modified