Add tests for directory and file templating.