Add tests for rotated binary search