MDL-39957 course: added PHPUnit test for the new course_restored event