change test_groupby as per @jreback's suggestion