Add unit tests for team_update