   it 'should send HTTP 400 if user is not a member of the api token group', (done) ->
 
     # creating user, group, and api token
-    options = { createGroup : yes }
+    options = { createGroup : yes, groupData : { isApiTokenEnabled : yes } }
     withConvertedUserAndApiToken options, ({ userFormData, apiToken }) ->
 
       # creating another user, which is not a member of the previously created group

  it 'should send HTTP 200 with token in body if request is valid', (done) ->

    # creating user, group, and api token
    options = { createGroup : yes }
    withConvertedUserAndApiToken options, ({ userFormData, apiToken }) ->

      createSsoTokenRequestParams = generateCreateSsoTokenRequestParams

      request.post createSsoTokenRequestParams, (err, res, body) ->
        expect(err).to.not.exist
        expect(res.statusCode).to.be.equal 200
        expect(body).to.contain 'loginUrl'
        done()

