Refactoring of intervals managers test.