Functional test improvements

Fine for me 
And argsToString is nice!