Added interval collection and tests for it.