Use CACHE_EXPIRES_PERIOD const in tests

Rather than duplicating the integer.
Rename CachePeriod to cacheDuration

Because it's a `time.Duration` and there's no reason to use it outside of
this package (though I'm not sure that actually matter for consts).