override copy method, and tests
setdefault, __contains__, and tests