fix(iterator): update add()/remove() logic

Implemented Jasmine tests `iterator.spec.js`