Added test for the max and min