Add window function tests