Added iterator pattern implementation to testing pkg