Make API test_multiple_paths green again

Update OperatingSystem entity and map remote to local paths
Update str_type parameter in Role entity name field
Improve StringField to convert to a tuple if a string is given as
str_type
Improve skip_if_sam helper method to deal with entities modified by
functools.partial

Related to #1452
```python
if isinstance(str_type, tuple):
    self.str_type = str_type
else
    self.str_type = (str_type,)
```