Fixed: text nodes considered ancestors
Added: new tests