Fix test_courses.py.