Make testing script use testing code again...
Merge branch 'chathistory' into moodle_24_dev