Many improvements in the set tests.