anchor.diff:              Component component = loadComponentFromBinary(dillFile.path);
   
               // Contains (at least) the 2 files we want.
  -            component.libraries
  +            expect(
  +                component.libraries
                       .where((l) =>
                           l.importUri.toString() == "package:pkgB/a.dart" ||
  -                        l.fileUri.toString().contains(fileB.path))
  -                    .length ==
  -                2;
  +                        l.fileUri == fileB.uri)
  +                    .length,
  +                2);
   
               // Verifiable (together with the platform file).
               component =
  
positive.code:             Component component = loadComponentFromBinary(dillFile.path);
  
              // Contains (at least) the 2 files we want.
              component.libraries
                      .where((l) =>
                          l.importUri.toString() == "package:pkgB/a.dart" ||
                          l.fileUri.toString().contains(fileB.path))
                      .length ==
                  2;
  
              // Verifiable (together with the platform file).
              component =
                  loadComponentFromBinary(platformKernel.toFilePath(), component);
              verifyComponent(component);
          }
        });
        expect(await result, 0);
  
negative.code:         '--platform=${platformKernel.path}',
          '--output-dill=${dillFile.path}',
          '--unsafe-package-serialization',
          '--no-incremental-serialization',
        ];
  
        final StreamController<List<int>> inputStreamController =
  