Fix flaky template compilation unit test.

The template compiler adds a timestamp to each generated source file,
spuriously failing the test if there was more than 1 sec between the
two calls to the compiler.

We simply strip off that part of the file in the test.