Add basic tests for TemplateCompiler#compile.