add test for select distinct + windowing