input/output iterator tests