Split out template test into a new file