constructor () {
    this.clearState()
    // bind it to be used as standalone functions
    this.setTimeout = this.setTimeout.bind(this)
    this.clearTimeout = this.clearTimeout.bind(this)
  }
This is a lighter mock which only creates mocked functions to work
as timeouts.