Add support for a location substitution in templates.
Add some missing test files.