Cleaned up unit test code for finding intervals.