Updated teamId access in test