tests the iteration