A last-minute call to replace Steven Smith was followed by a second Test century