Fixed bug

The command would get confused when a number
of open tags with identical name are nested.
The current solution is partial and would not
work in certain circumstances. It is a step
in the direction for a full solution.
: white_check_mark: New specs for the closeTag command.