Gang member testifies in Brooklyn murder trial