Nicer exception catching in tests.