Handle changing min/max_index_interval correctly
Add unit tests for changing min/max_index_interval