test: set data flag on iteration