If it cannot find the name you wrote, it will just follow the first party-member. I'm going to implement some tank logic instead of this.
And to answer Atticus - yes! It will initiate combat.
It checks for the tanks target. And if his target is targetting anyone from your group, it will attack...