Wrote SegmentPackageManager metadata tests.