Add tests for PackageTracker and fix some issues