Make timer interval configurable in tests.