Add tests for course.py