add get all groups

This should be two tests -- one for the empty response and another for the non-empty response.