Clone package-template on-the-fly when testing