Max, Min functionality and additional testcase