test for applyCumulative