fix projectPackageTest and add SetRootDirectory