test controller-factory