add tests for slidingwindow