Test of min cut