add test of the rotated sorted array