Added unit tests for sending group invitations