Add ReadBuffer unit tests.