fixed bug in PackageTest