Added test for get_parent