refactor: add more cases to PackageReferenceTests and clean up