Tests for accumulate

I should probably give up on LaTeX symbols in tests