Wrote SegmentPackageManager.edit_definition_module() tests.