tests of minmax for harcoded example