Added more coverage in functional tests for FlushAsync

what is this doing anyway?