Add tests for dataset iterators