Fixed some places using old db settings.

There were some places in CiviUnitTestCase that were still using the
GLOBALS['mysql*'] stuff instead of the CRM_DB_Settings object.