Modify get_descendants algorithm. .travis and some tests.