The test fails randomly in CI, but not locally. Maybe the tests runs too quickly and the field is not updated or the previous value (before an update is done) is cached.