Refs #8613 Fix tests, use the view method to get the team_id