Fixing grandes incompatibility problem
Upgrade test/lms.php and fixing specific tests