Custom NPCs Add to team and Eliminated event buggy

Ok, i tried to just add that npc to a team from TeamCollection.GetTeams() every tick.
Now i think i covered each combination of settings, the function never succeeds. Are you sure that you successfully added that npc to a team? Do you have some prints that would show if it fails?