This seems to work, the tests don't pass because the bridge used to store the embedded id creates new fields in the documents that are not defined in the initial schema.