Small refactor

 * Mainly, extracted the method responsible of controlling the cached
   data validity
Some more redmine tests