Johnny Depp testifies against ex-wife