Added cohort factory to assignment_spec.rb