Detached pages from XML courses are set to appropriate descriptor class (LMS-2094)

Add tests