add a test for table iteration