Pakistan clinch number one spot in test ranking