st m = newModel(function(m) {
      m.f1 = newFlowEventEx({
        title: 'test1',
        start: 0,
        end: 10,
        id: '0x100'
      });

      m.f2 = newFlowEventEx({
        title: 'test2',
        start: 0,
        end: 10,
        id: '0x100'
      });

      m.flowEvents.push(m.f1);
      m.flowEvents.push(m.f2);
    });

    assert.isDefined(m.modelIndices);
    const modelIndices = m.modelIndices;
    assert.strictEqual(modelIndices.getFlowEventsWithId('0x100').length, 2);
    assert.stri