tests: TemplateFactoryTest added, method createForReflection added