changed mocha unit tests to reflect code actually used to perform the arithmetic calculations