Test template resolution