Made sum.js testable