createTestFn = (testCase) => {
    return function () {
      assert.throws(function () {
        creation.call(this, testCase);
      }, testCase.errMsgMatcher);
    };
  }
Creates test callback for creation test.
@param {!FieldCreationTestCase} testCase The test case to use.
@returns {!Function} The test callback.