Tweaked sliding window test