refactoring tests for IntervalIndexer

-this makes pylint much happier