added $templateCache unit tests