Add test for new course_mode function.

ECOM-41