Updated test for templates