Unit tests: fixed the 'RingBuffer' tests.

A compilation error was introduced in the previous commit.