Tests for sets factory.