Make it so that a group member is not added to a group twice

I noticed that it was possible to add someone to a group more than once, so I wrote a failing test, fixed it, and the test now passes. @jh-bate, please check.