Tests for Buffer.