Test repairs removed cruft from templates