subtle changes: from courses_path to root_path in courses_controller and tests