Fixed unit test for core.template