No longer emit an error in the flush function when tests failed. Fixes #...

...17