LPS-28990 Fix test case: We need to persist the modified typesettings and clear all caches that could contain stale data (including Hibernate-internal caches)