title: $timeout.flush() is not working
body: <p>I trying to test changes after <code>$timeout</code>, here is it:</p>
  
  <pre><code>it('after timeout', function () {
          expect(scope.Vm.isLoaded).toBe(true);
          $timeout.flush(10);
          $timeout.flush(2000);
          $timeout.verifyNoPendingTasks();
          expect(scope.Vm.isLoaded).toBe(false);
        });
  </code></pre>
  
  <p>this is not working
  on checking <code>$timeout.verifyNoPendingTasks();</code>
  I have error:</p>
  
  <blockquote>
    <p>Error: Deferred tasks to flush (2): {id: 0, time: 0}, {id: 1, time:
    2000}</p>
  </blockquote>
  
  <p>after that I added :</p>
  
  <pre><code>$timeout.flush(10);
  </code></pre>
  
  <p>result is:</p>
  
  <blockquote>
    <p>Error: Deferred tasks to flush (1): {id: 1, time: 2000}</p>
  </blockquote>
  
  <p>when added:</p>
  
  <pre><code>$timeout.flush(10);
  $timeout.flush(2000);
  </code></pre>
  
  <p>test is failed, looks like it's not working, what I missing? any ideas? </p>