tests for iterator pattern completed