Actress Gwyneth Paltrow testifies in trial of accused stalker