Test that the dispatch callback receives error middleware errors

Currently failing. :anguished:
Pass correct error to dispatch callback

Fixes failing test from 703c8e7.
Bump to 0.8.1