Fixed bug in the DescendantsIterator
Added basic unit tests