added try_read/write() functions to ringbuffer API and adjustet test, and refined test for cache container