Tests for mincut implemented.