ISingleton, IFactory and IFunctionalTest base classes. TestFactory now use them. New arguments handling in main.