MDL-52683 mod_scorm: Test for scorm_get_last_completed_attempt