Provide a convenience method for mocking iterators

Fixes #63