[tests] Straightened out template specialization of QTest::toString

The fun parts of C++
[dir] Reduce filename length limit to 255
[tests] More tests for dir.cpp