Du Plessis confirmed as South Africa Test captain