assert that send_task is called