Test registerManaged() with embedded documents and null ids when mapped and not mapped.