Add unit tests for recursive `template` path support.