anchor.diff:    });
   
     group('ui', () {
  -    tScopedTest('/packages', () async {
  -      registerSearchService(SearchServiceMock(
  -        (SearchQuery query) {
  -          expect(query.offset, 0);
  -          expect(query.limit, pageSize);
  -          expect(query.platform, isNull);
  -          expect(query.isAd, isFalse);
  -          return SearchResultPage(query, 1, [
  -            PackageView.fromModel(
  -                package: foobarPackage,
  -                version: foobarStablePV,
  -                scoreCard: null)
  -          ]);
  -        },
  -      ));
  -      final backend = BackendMock(
  -        lookupPackageFun: (packageName) {
  -          return packageName == foobarPackage.name ? foobarPackage : null;
  -        },
  -        lookupLatestVersionsFun: (List<Package> packages) {
  -          expect(packages.length, 1);
  -          expect(packages.first, foobarPackage);
  -          return [foobarStablePV];
  -        },
  +    testWithServices('/packages', () async {
  +      await expectHtmlResponse(
  +        await issueGet('/packages'),
  +        present: [
  +          '/packages/helium',
  +          '/packages/hydrogen',
  +          'hydrogen is a Dart package',
  +        ],
  +        absent: [
  +          '/packages/http',
  +          '/packages/event_bus',
  +          'lightweight library for parsing',
  +        ],
         );
  -      registerBackend(backend);
  -      registerAnalyzerClient(AnalyzerClientMock());
  -      await expectHtmlResponse(await issueGet('/packages'));
       });
   
       tScopedTest('/packages?q=foobar', () async {
  
positive.code:   setUpAll(() => updateLocalBuiltFiles());
  
    group('old api', () {
      scopedTest('/packages.json', () async {
        final backend =
            BackendMock(latestPackagesFun: ({offset, limit, detectedType}) {
          expect(offset, 0);
          expect(limit, greaterThan(pageSize));
          return [foobarPackage];
        }, lookupLatestVersionsFun: (List<Package> packages) {
          expect(packages.length, 1);
          expect(packages.first, foobarPackage);
          return [foobarStablePV];
        });
        registerBackend(backend);
        await expectJsonResponse(await issueGet('/packages.json'), body: {
          'packages': ['https://pub.dev/packages/foobar_pkg.json'],
          'next': null
        });
      });
  
      tScopedTest('/packages/foobar_pkg.json', () async {
        final backend = BackendMock(lookupPackageFun: (String package) {
          expect(package, 'foobar_pkg');
          return foobarPackage;
        }, versionsOfPackageFun: (String package) {
          expect(package, 'foobar_pkg');
          return [foobarStablePV];
        });
        registerAccountBackend(AccountBackendMock(users: [
          User()
            ..id = 'hans-at-juergen-dot-com'
            ..email = 'hans@juergen.com',
        ]));
        registerBackend(backend);
        await expectJsonResponse(await issueGet('/packages/foobar_pkg.json'),
            body: {
              'name': 'foobar_pkg',
  
negative.code: 
  import 'package:test/test.dart';
  
  import 'package:pub_dartlang_org/frontend/backend.dart';
  import 'package:pub_dartlang_org/frontend/models.dart';
  import 'package:pub_dartlang_org/frontend/name_tracker.dart';
  