AggregateWindowFunction->WindowFunction, added tests