Fixed timers order in queue (they should be ordered starting  from the smallest interval until the largest).
Added unit test to validate this change.