           ->
             # expecting isApiTokenEnabled field to be empty before request
             expect(group.isApiTokenEnabled).to.be.empty
-            options = { isApiTokenEnabled : true }
-            group.setApiTokenAvailability options, (err) ->
+            group.setApiTokenAvailability true, (err) ->
               expect(err).to.not.exist
               queue.next()
 

          ->
            # expecting isApiTokenEnabled field to be empty before request
            expect(group.isApiTokenEnabled).to.be.empty
            options = { isApiTokenEnabled : true }
            group.setApiTokenAvailability$ client, options, (err) ->
              expect(err?.message).to.not.exist
              queue.next()

          ->
            JGroup.one { slug : group.slug }, (err, group_) ->
              expect(err).to.not.exist
              expect(group_.isApiTokenEnabled).to.be.truthy
              queue.next()

          -> done()

      options = { createGroup : yes, context : { group : generateRandomString() } }
      withConvertedUser options, ({ group }) ->

        group.setApiTokenAvailability null, (err) ->
          expect(err?.message).to.be.equal 'availability must be set'
          done()


