Coroutine 'test_core' was never awaited when running rasa.test from notebook

Hello Team!.

I’m facing the following error when running rasa.test from a Jupyter Notebook. What is strange is that the rasa.train method works perfectly (the model trains without a problem).

Error stack:

/home/lucas/anaconda3/envs/chatbots-models/lib/python3.8/site-packages/rasa/api.py:143: RuntimeWarning: **coroutine 'test_core' was never awaited**
  test_core(model, stories, output, additional_arguments)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/home/lucas/anaconda3/envs/chatbots-models/lib/python3.8/site-packages/rasa/api.py:144: RuntimeWarning: **coroutine 'test_nlu' was never awaited**
**  test_nlu(model, nlu_data, output, additional_arguments)**
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

For doing this, I’m following the tutorial found on this page. Any suggestions or ideas why this might be happening? I’m using Rasa 3.1.0 and Python 3.8.13.

Best.

It seems that someone forgot to make the test function “async”, as seen in the source code here: So basically test_core and test_nlu are async functions but I cannot await for test since this one is not an async function. I ended up fixing it by creating a copy of this method that defines test as async.

Is this fixed in newer rasa versions? Best.