basic tests for template-engine.js