Used Simian to find large code duplication in SurveyControllerTests and
CourseControllerTests. Changed the block of code