Iterator block helper

I wanted to see how unit tests are being done - maybe not the best implementation, but it works and I found myself wanting this functionality when I was playing around with mojo.js