Added tests for .as_iterator().