added - unit tests for iterator pattern