fix up compiler warnings in RingBufferTest