Closed #4663: Fix a bug that TextureCache Tests calls TextureCache.addImage function error