Unit test for new group methods

I added a unit test for the join/leave methods.
Since the joinRequest method requires human intervention I didn't add a test for that.