Add test cases, in parent_index() if index is beyond array bounds return None.