move `factory test` in classifier_test to classifier_factory_test