Fixed skipped unit tests for mwlib and loaded global resource.php config

Created a fix for skipped unit tests in mwlib directory.
Now the global resource.php config file is loaded instead.