changes to diffBoundsTest to make it pass an iterator