Test passing an error to the callback.

See #232.