test if params[:course_id] is present and variables are set