That’s not true, you can invoke the Fifth anytime testimony might incriminate you, regardless of who it is directly against. If this is founded (which may itself be contested if it isn’t directly against yourself), you can’t be compelled to testify unless the potential for self-incrimination is neutralized by immunity.
However, in this case there was no real self-incrimination concern.