Fix CBM unit test to work in Moodle 2.6.

while still working in 2.5. (CBM behaviour changed there.)