   it 'should set all to true for creating when defaults are same', ->
 
     course = makeCourse()
-    TaskingActions.loadDefaults(course.id, course)
+    TaskingActions.loadDefaults(course.id, course, course.periods)
 
     TaskingActions.loadTaskToCourse(NEW_TASK_ID, course.id)
     TaskingActions.create(NEW_TASK_ID)

    courseDifferent = makeCourse(DEFAULT_TIMES, PERIOD_DEFAULT_TIMES_DIFFERENT)
    courseDifferent.id = '2'

    TaskingActions.loadDefaults(course.id, course)
    TaskingActions.loadTaskToCourse(NEW_TASK_ID, course.id)
    TaskingActions.create(NEW_TASK_ID)


COURSE =
  id: '1'
  periods: [
    {id: '1', name: '1st', is_archived: false},
    {id: '2', name: '2nd', is_archived: false},
    {id: '3', name: '3rd', is_archived: false},
    {id: '4', name: '4th', is_archived: false}
  ]

DEFAULT_TIMES =
