Add test for multiple bufferWithTimeOrCounts