Use toSet in MatchTest to make the result order-independent