Add a unit test to assert that we copy and correctly alter
package_groups during import.