Completed unit testing on calculate.js