Set cache duration accordingly for the tests