Fixed unit tests for studygroup/user specs

We should check if user is a member of this studygroup before removing or this call might return an error.