Add basic tests for windowing functions