flush() should not be necessary. I'd actually remove it to make sure we're testing it to do the right thing