fixed a failing test due to lack of flushing

failed without flushing on my environment.