added test for templateCache