MDL-41191 enrol: unit tests for enrol_get_shared_courses