test for cumulativePrice