Implemented iterator test.