Reduce the length of generated TestBuild files.

VisualStudio 2010 has issues with files with extremely long names, and CMake will generate warnings when it detects problematic files.

Merge request reports