add get all groups

This should be two tests (see above). We probably also need a test for the case where the entire list fits in a single page.