Hardening/failing func tests under valgrind

### Description
Improvments for valgrind test suite.
Including directory of each test (except pure valgrind tests) in test output and the lines are longer (120 chars).
Introduced a number of sleeps in functional tests to try to fix the failures under valgrind (the sleeps are executed only if the tests run under valgrind).