Add tests for descendants()
Null safety fix

Fixes Issue 19