South African president to testify at corruption inquiry