anchor.diff:              // - by [subSubKey2]
               () {
                 var ancestorQuery = new Query(ancestorKey: subSubKey2);
  -              return consumePages((_) => datastore.query(ancestorQuery))
  +              return consumePages(
  +                  (_) => datastore.query(ancestorQuery, partition: partition))
                     .then((results) {
                   expect(results.length, 1);
                   expect(compareEntity(entity2, results[0]), isTrue);
  
positive.code:   });
  }
  
  Future waitUntilEntitiesReady(Datastore db, List<Key> keys) {
    return waitUntilEntitiesHelper(db, keys, true);
  }
  
  Future waitUntilEntitiesGone(Datastore db, List<Key> keys) {
    return waitUntilEntitiesHelper(db, keys, false);
  }
  
  Future waitUntilEntitiesHelper(Datastore db, List<Key> keys, bool positive) {
    var keysByKind = {};
    for (var key in keys) {
      keysByKind.putIfAbsent(key.elements.last.kind, () => []).add(key);
  
negative.code:             () {
                var query =
                    new Query(ancestorKey: subSubKey, kind: 'SubSubKind2');
                return consumePages(
                    (_) => datastore.query(query, partition: partition))
                    .then((List<Entity> results) {
                  expect(results.length, 0);
                });
  