Refactoring PackageTest to make it hhvm friendly.