[cache] fix test for expiration, for slow db cache compatibility