Forward port unit tests for set operation and repr.
Forward port unit tests for set operation and repr.

Patch by Alexander Belopolsky.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator