Fixed exception during test because $course was not synced up.