Replaced param int in _check_max_num() and _check_min_num plus regression test.