add another test for applyEach()