add test for unhappy case -- rescuing from an error