pull patch for #8070.
Added test for #9303.
extract async executor test.