Pakistan dethrone India to reach No 1 Test spot