Tests for minimum/maximum