Fix bug in FontCache::getCache: misuse iterator of map, now use FontCache::create to get new allocated object
More unit test code of FontCache
Re-format some code