Improving tests cases
Fixed problem with internal state

When the stack of jump states is modified the global jump state should
be the same that the top of the stack.
some minor changes