Added tests for getCacheName