Tests for simulate_async.