nested %template test