Added security context tests for CourseResource.