tests for Template.js