asks', function() {

  test('Queued functions are cancelable.', function(done) {
    var callCount = 0;
    var callback = function() {
      callCount++;
    };
    var asyncRef = microTask.run(callback);
    microTask.cancel(asyncRef);
    setTimeout(function() {
      assert.equal(callCount, 0);
      done();
    });
  });

  test('Multiple instances of the same queued function are cancelable.', function(done) {
    var callCount = 0;
    var callback = function() {
      callCount++;
    };
    var asyn