Fix non-determinism of TCX tests

Normally, the generated TCX files include a timestamp that changes with
every build, which breaks the tests. This change forces the use of a
specific predetermined build timestamp for all generated TCX files in
*test* mode only.