Add test for using template in root.