binary search modify test range