Add test case for TableIterator to check distance limit