Added unittest for sync ReadBuffer() and sync WriteBuffer()