moved join and leave group actions to the group controller and made some tests for it