get_path_parent test and improved