Add a test for SlidingWindow with halfWindowSize=1