Testing getCourseById and getBooksByCourse method