Fix failing tests; add assert_async_task method

going into #3550