Add deprecated annotation.
Changed expectations of writeOneBlockToBuffer.
Add one test case that writes two replica block to the buffer.