Better tests for flush method