method to_model renamed to eobject_to_model in tests