MDL-37619 Assign: Fix failed unit tests for mod/assign/lib.php