Johnny Depp had joked about punching Amber Heard, friend testifies