 
   it 'should send HTTP and be able to login user with valid request', (done) ->
 
-    withConvertedUserAndApiToken { createGroup : yes }, ({ group, apiToken }) ->
+    options = { createGroup : yes, groupData : { isApiTokenEnabled : yes } }
+    withConvertedUserAndApiToken options, ({ group, apiToken }) ->
       createUserAndSsoToken apiToken.code, ({ token }) ->
 
         ssoTokenLoginRequestParams = generateSsoTokenLoginRequestParams

        ->
          # trying to use sso token without being a member of the group
          ssoTokenLoginRequestParams = generateSsoTokenLoginRequestParams
            qs : { token }
            url : { subdomain : group.slug }

          request.get ssoTokenLoginRequestParams, (err, res, body) ->


  it 'should send HTTP 400 if user is non-existent', (done) ->

    options = { createGroup : yes, groupData : { isApiTokenEnabled : yes } }
    withConvertedUserAndApiToken options, ({ group }) ->
      token = JUser.createJWT { username: 'non-existent-user', group : group.slug }
      ssoTokenLoginRequestParams = generateSsoTokenLoginRequestParams
        qs  : { token }
