TreeIterator: Tests and Fixes

**Work In Progress.**

Continuing to improve our tests. This time — `TreeIterator`.

Implementing tests according to `Mozilla AST`. Found one unexpected behaviour.
What case is this?