Pakistan have moved into a strong position in the second Test against South Africa - but they still have work to do, warned Dominic Cork.