Add tests for template error.