Fixed edge case
Test for normal case too
Revised PR
Made comparison consistent
Merge pull request #78 from dantleech/fix

Fixed edge case for descendantNode query