This is going to require that the `kwargs` coming in to `_create` be the json format of the fields. Ideally, it would take the python form instead. See `xmodule.modulestore.tests.factories.XModuleCourseFactory:_create` for an example of how to set the attributes as python objects, rather than their json forms.