Add test for CumulitiveSum