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

Fixes #17