fixing bug with getTeamStats. Lots of tests added