function doIsValidTest(testFunc, valid, invalid) {
  valid.forEach(str => {
    assertTrue(`"${str}" should be valid.`, testFunc(str));
  });
  invalid.forEach(str => {
    assertFalse(`"${str}" should be invalid.`, testFunc(str));
  });
}
Asserts that the given validation function generates the expected outcome for
a set of expected valid and a second set of expected invalid addresses.
containing the specified address strings, irrespective of their order.
@param {function(string):boolean} testFunc Validation function to be tested.
@param {!Array<string>} valid List of addresses that should be valid.
@param {!Array<string>} invalid List of addresses that should be invalid.
@private