Test for sum of min and max