Fixed unit tests for studygroup/user specs

This is the same TODO as the one at the beginning of the method.