simpler Singleton class
added testFunctools