I am the author and happy to answer any questions anyone has here!
Why did you use globals for state? Isn’t it just as easy, and less dangerous, to close over state in handlers, e.g. like this?
Our tests run in serial and use mocks, so there is currently no gain to us from having handler context.