Added LabelFactory, tests.