Get all groups method implemented
Test for get all groups