course lib. get course for testing and course detail