This was passing locally, but failing on Concourse due to a different order of TemplateHistory items being returned. This changes the test so that it can't randomly fail based on the order of template history items returned.