Add accumulate sink
Add test for accumulate sink