Use const/var in cachetest
improve RedisCache coverage (invalid network address)