Added more coverage in functional tests for FlushAsync

Could you use `@` strings here instead? We decided using those works better since it preserves the line endings of the source file.