Add test for iterating the same table multiple times