test resourceToModel RelationFields