__copy__ and __deepcopy__ tests

Implement __copy__ and __deepcopy__ on models.