Fix: Bug when changing min/max/model in same $digest cycle

Also update a test to flush timers to work with bug fix