Adds functional tests for templates.