implementing tests in StudyControllerSpec