Added tests for collections for iterations using iterator