anchor.diff:    });
   }
   
  +void _testNoActiveUser(Future Function(PubApiClient client) fn) {
  +  testWithProfile('No active user', fn: () async {
  +    final client = createPubApiClient();
  +    final rs = fn(client);
  +    await expectApiException(rs,
  +        status: 401,
  +        code: 'MissingAuthentication',
  +        message: 'please add `authorization` header');
  +  });
  +}
  +
   void _testNoPackage(Future Function(PubApiClient client) fn) {
  -  testWithServices('No package with given name', () async {
  -    final client = createPubApiClient(authToken: hansUser.userId);
  +  testWithProfile('No package with given name', fn: () async {
  +    final client = createPubApiClient(authToken: adminAtPubDevAuthToken);
       final rs = fn(client);
       await expectApiException(rs, status: 404, code: 'NotFound');
     });
   }
   
   void _testNoPublisher(Future Function(PubApiClient client) fn) {
  -  testWithServices('No publisher with given id', () async {
  -    final client = createPubApiClient(authToken: hansUser.userId);
  +  testWithProfile('No publisher with given id', fn: () async {
  +    final client = createPubApiClient(authToken: adminAtPubDevAuthToken);
       final rs = fn(client);
       await expectApiException(rs, status: 404, code: 'NotFound');
     });
  
positive.code:       return client.removePackagePublisher(hydrogen.packageName);
      });
  
      testWithServices('successful', () async {
        await _setupPackage();
        final client = createPubApiClient(authToken: hansUser.userId);
        final rs = client.removePackagePublisher(hydrogen.packageName);
        await expectApiException(rs, status: 501);
  //  Code commented out while we decide if this feature is something we want to
  //  support going forward.
  //
  //      final rs = await client.removePackagePublisher(hydrogen.packageName);
  //      expect(_json(rs.toJson()), {'publisherId': null});
  //
  //      final p = await packageBackend.lookupPackage('hydrogen');
  //      expect(p.publisherId, isNull);
  //      expect(p.uploaders, [hansUser.userId]);
  //
  //      final info = await client.getPackagePublisher('hydrogen');
  //      expect(_json(info.toJson()), _json(rs.toJson()));
      });
    });
  
negative.code: 
  void _testPublisherAdminAuthIssues(
      Key publisherKey, Future<void> Function(PubApiClient client) fn) {
    testWithServices(
        'Active user is not a member of publisher (${publisherKey.id})',
        () async {
  