More robust matchers for generated template.