Test Binary search with rspec