tests for window functions fixed