Team invitations feature implemented and tested