get templates working in tests