Abid Ali ton for Pakistan with Test poised