anchor.diff:        })
         .then(_getDebugController)
         .then(testFunc)
  -      .whenComplete(() => storage.dispose());
  +      .whenComplete(() {
  +        if(storage != null) {
  +          storage.dispose();
  +        }
  +      });
     });
   }
   
  
positive.code: 
  const _testTitle1 = 'Test Title 1';
  
  void main(Storage storageFactory()) {
    group('AppController', () {
  
  
negative.code:     .then(_whenUpdated);
  }
  
  Future<Storage> _customStorageFactory(Storage sourceStorageFactory(), int runCount, List<dynamic> initialNoteValues) {
    Storage store;
    return new Future(sourceStorageFactory)
      .then((Storage value) {
        store = value;
        return store.set('runCount', runCount);
      })
      .then((_) {
  
        var noteStore = new NestedStorage(store, 'notes');
  
        return Future.forEach(initialNoteValues, (jsonValue) {
          var idString = new KUID.next().toString();
  
          return noteStore.set(idString, jsonValue);
        });
      })
      .then((_) => store);
  }
  