Tests for index tree iteration and reading and writing.