Added tests/modification to shared_pairs.

Modification to shared pairs allowed testing by sorting a set to a consistent order.