MDL-60057 mod_lesson: add unit tests for callbacks