       options = { createGroup : yes, context : { group : generateRandomString() } }
       withConvertedUser options, ({ group }) ->
 
-        group.setApiTokenAvailability {}, (err) ->
-          expect(err?.message).to.be.equal 'isApiTokenEnabled is a required field'
+        group.setApiTokenAvailability null, (err) ->
+          expect(err?.message).to.be.equal 'availability must be set'
           done()
 
 

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


          ->
            # expecting isApiTokenEnabled field to be empty before request
            expect(group.isApiTokenEnabled).to.be.empty
            group.setApiTokenAvailability$ client, false, (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.falsy
              queue.next()

          -> done()
