It's a tough predicament to be in. I have never been in a situation like this, but I would say that testifying against this person may just help your best friend out tremendously.
I'm not sure if an agreement like this can be enforced in a court of law, but who knows...
Hang in there. I say testify in court. But like our Sheila said, you could help both friends out in the end.
