added tests for team sorting