Fix test for templates