add buffer size test