test template compile