LPS-28990 Fix test case - We need to persist the modified object and clear the caches after the upgrade