Added doctest for getting group keys.