chapter 22, catch exceptions as test failures