TDD unit tests for template registration