Make TemplateBuilderImplTest less brittle.