Tests for building BufferStats.