[enh] Added tests on templating