Fix error on groups page with not logged in users

* Fixes #204
* Entered #205 to avoid future problems
* also added some model specs