TST: GH3579, period index misbehaving in groupby

BUG: fix take platorm issue with PeriodIndex (GH3579)