[us34609] rework of functions, mocha test base