added test for BinarySearch