Added more coverage in functional tests for FlushAsync

Oops, that was a mistake. I will fix it.