more test to checkMaxAndMin