add get_group() methods and related test cases