function invoke(toTest, arg) {
  return toTest(arg).map(function(table) {
    return table.getName();
  });
}
@param {!Function} toTest Function to be tested.
@param {string|!Array<string>} arg
@return {!Array<string>}