Hoping to attract more drivers, Uber Technologies Inc. is testing a new earnings algorithm in 24 U.S. cities, allowing drivers to see pay and destinations before accepting a trip. The algorithm also raises the incentives for drivers to take short rides.