Properly save/restore flags in model tests
Properly save/restore flags in model tests

PiperOrigin-RevId: 281192912

tombstone/models,tombstone/models,tombstone/models,alexgorban/models,alexgorban/models,tombstone/models,tombstone/models,alexgorban/models,alexgorban/models,alexgorban/models,tombstone/models