Former Phoenix officer testifies in murder trial