Wrap errors produced by esperance into a form that PHPUnit is happy with...

....