update test case
protect min max overflow