Wrote SegmentPackageManager.pytest() tests.