Added test to make sure that the iterator works properly