improve tests on min_cuts_undirected