This is one of the drawbacks of transitioning from raw Hash to a struct object: isolated middleware tests are more complex since you can't pass in an ordinary Hash; you have to construct an actual Env object. Oh well… *sigh*