Add tests that check both min and max