Define PackageEntry equality
Add Repository specs
Move spec helper methods