fixed a failing test due to lack of flushing
Merge pull request #22 from nobeans/fixed/test

fixed a failing test due to lack of flushing