Fix sum so it calls accumulate correctly
Add vector operation tests