Wrap in a try/catch block. See the other crypto tests.