Fixed test of minimum/maximum