This PR bugfixes ring buffer ReadWithCallback when the callback send function read part of the data. Also backported one robustness fix from unity. Testcases are added