failing test for iterate with promises