Tests for canceling async requests.