Restart FreeRTOS kernel on POSIX port


I’m using Ceedling to test the code contains FreeRTOS. After each ceedling test I need to end scheduler using vTaskEndScheduler() function to check results.

The problem is - when i restart scheduler with vTaskStartScheduler() function, already created tasks, queues and timers behaves not as I expect.
How can i free all resources, which were allocated for tasks, timer etc on POSIX port?

I have not used seedling but why do you need to end scheduler between tests?