Avoid test issues with error objects across environments.