Cleaner error messages in test script