Ex-Malaysian premier testifies in corruption case