add buffer protocol tests