test sliding window updatede