more tests and a bug fix for get_path_parent