function testAddTable() {
  if (!manualMode) {
    return;
  }

  var db = new lf.backstore.Firebase(schema, fb);
  var validate = function(tables) {
    var tableNames = schema.tables().map(function(table) {
      return table.getName();
    }).sort();
    assertArrayEquals(tableNames, Object.keys(tables).sort());
  };
  var numTables = 0;

  return db.init().then(function() {
    return lf.backstore.FirebaseRawBackStore.getValue(db.getRef(), '@table');
  }).then(function(tables) {
    numTables = Object.keys(tables).length;
    assertTrue(numTables != 0);
    validate(tables);
    db.close();
    schema.setVersion(2);
    db = new lf.backstore.Firebase(schema, fb);
    return db.init();
  }).then(function() {
    return lf.backstore.FirebaseRawBackStore.getValue(db.getRef(), '@table');
  }).then(function(tables) {
    assertEquals(numTables + 1, Object.keys(tables).length);
    validate(tables);
  });
}
@type {function(!lf.raw.BackStore): !IThenable}