add test for impl_get_path_by_opt and impl_get_opt_by_path