Trump testifies in court for defamation