working on unit tests for TemplateCache