Filled in isParentOf and isAncestor of methods and relevant tests