[BUGFIX] Fix broken unit tests for PackageManager