add tests for `templates`