TST: fix groupby test on windows (related GH7580)