Fix `hasTimers` to release `autorun`

To check this change, I added missing test for `cancelTimers`.