Added tests for private sum.
- Fixed aggregate funs to account for an infinite history size.