[PATCH 07/16] test_driver: Rewrite testBuildFilename