Code changes in response to review comments

* fix group creation and add test
* add has_member tests
* reformat long lines and add setup.cfg to configure flake8 for max line length 100
* change var name in groups/0016 migration