Fixed unit tests for studygroup/user specs

I'm thinking we need checks to see if `studygroup_course` exists. If it doesn't then the next line will throw a `nilexception`.