Add test to make sure errors can be re-captured.