Add options to groups method. Add tests for groups and people