Added a test case to validate the iterator interface on the collection