test template runs correctly