build tests.
Adjust compile to clear old templates as we go.