MDL-37547 Assignment: Add unit tests for mod/assign/lib.php