Renamed and improved testing abstractions for awaiting on futures. Review: https://reviews.apache.org/r/10460