Make tests pass with PYTHONHASHSEED=random

Due to CVE-2012-1150, CPython now allows using a random seed for
hashes, so set/dict order is no longer predictable.

Update tests to pass even if the hash seed is randomized.