Add TeamService and unit tests