Fix mock user api for group_invitation