Cache time test.

#6205 
Merge from 6043-2, in which it was disabled by @RoySegall temporarily.