changed the functional test to look for team_id instead of team name and added team_id to player factory