added unit tests for iterator()