test ServiceLocator (factory)