Add test case for Graph ByParent().