test: add tests for table iterators