MDL-38359 courselib: Fix unit tests