Add unit tests for group join/leave method.