Add specs to specifically test the type casting of the cache_duraction