Tests for query errors in CourseResource.