Hi and welcome!
Using unit tests to test asynchronously driven systems such as RTOS is not a very meaningful endavour, we discussed this many times before, just query the forum for unit test (eg here: What is the minimal FreeRTOS environment to execute unit-tests? - Kernel - FreeRTOS Community Forums)