Reduce duplication when testing CDN helpers