                 done(err)
 
     project_id2 = undefined
-    it "inivtes a collaborator to a project with an email message", (done) ->
+    account_id3 = undefined
+    it "inivtes a collaborator to a project via an email message", (done) ->
         # create new account and then invite
         async.series([
             (cb) ->

                        setTimeout((-> cb(err)), 100)

        ], (err) ->
            opts0 = email.send_email.args[0][0]
            expect(opts0.subject).toBe('SUBJECT_OF_EMAIL_1')
            expect(opts0.from).toBe('cocalc+2@sagemath.com')
            expect(opts0.fromname).toBe('Sage2 CoCalc2')
            expect(opts0.body.indexOf('BODY_OF_EMAIL_1') > 0).toBe(true)
            # no second email
            winston.info("email.send_email.args: #{misc.to_json(email.send_email.args)}")

                api.call
                    event : 'invite_collaborator'
                    body  :
                        account_id     : account_id3
                        project_id     : project_id2
                        title          : 'PROJECT_TITLE'
                        link2proj      : 'https://link.to.project/'
                        replyto        : 'cocalc+3@sagemath.com'
                        replyto_name   : 'Sage3 CoCalc3'
                        email          : 'BODY_OF_EMAIL_2'
                        subject        : 'SUBJECT_OF_EMAIL_2'
                    cb    : (err, resp) ->
