'Creates the course and add some changes to it.
Returns:
course: a course object'

def setup_test_course(self):

    course = CourseFactory.create(default_store=ModuleStoreEnum.Type.split)
    chapter = ItemFactory.create(category='chapter', parent_location=course.location)
    self.store.create_child(self.user.id, chapter.location, 'html', block_id='html_component')
    self.assertTrue(self.store.has_changes(self.store.get_item(course.location)))
    return course
