Use sets for test comparisons

This should address issue #3, although I'm a bit concerned that we should be explicit that ordering is not guaranteed.