add a test for the iterator