Increased CacheTest time delay, avoid flickering tests

Setting a cache lifetime of half a second seems to be
unreliable on Travis when just waiting a second,
so let's wait a bit longer.