Add a test for index_course