Ali (left) walks back to the pavilion after losing his wicket late on the second day of the second Test