TST test edge cases for min/max