Added tests for ancestors and descendents