Refactor package test
Refactor Packages to PackageInfo