Switched the build-template define to a define+test and added a test.
Added a test for build-template