Add range test assertion.

Now max row's limit is signed int max because cv::Range limitation.