Added more coverage in functional tests for FlushAsync

sleep in test is kinda evil, why is this being done rather than using the wait service?