Depp finishes testimony in defamation case