dump the error page on test failure

this only affects testing.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | see travis
| Fixed tickets | #137
| License       | MIT
| Doc PR        | -