Add tests for template loading helper methods