function runTestCases(testCases, createTestCallback) {
  testCases.forEach((testCase) => {
    let testCall = testCase.skip ? test.skip : test;
    testCall = testCase.only ? test.only : testCall;
    testCall(testCase.title, createTestCallback(testCase));
  });
}
Runs provided test cases.
@template {TestCase} T
@param {!Array<T>} testCases The test cases to run.
@param {function(T):Function} createTestCallback Creates test
   callback using given test case.