Unit test of cached templates