@Test
public void nextNTerminal() {

    AbstractVFState state = create(5, 10);
    state.size = 2;
    state.m1[0] = 1;
    state.m1[1] = 0;
    state.t1[4] = 1; // <- first terminal
    assertThat(state.nextN(-1), is(4));
}