test for iterateFor throug inline object