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

Fix a bug that TextureCache Tests calls TextureCache.addImage