A witness in the murder trial of a suburban mum says he agreed to testify in his friend's trial so his own murder charge could be dropped.