Fix tests for teams