handle patch parsing error in tests