TST more coverage for groupby head and tail