rescue: Improve error messages in the test script.