fixed groupby test; maybe not the function