tests for minimal path search
minimam path search
merge with find_min_path