Add a support for temp directories to PackageTests