Adding tests and fixing bug

assertNotDescendent had a typo and could not assert.

The tests found the problem.