test4 should now work. was giving the iterator the incorrect filehandle (to the original table, not the index)