add unit test to guarantee restoring a SchemaDocument inside a dict