added Tests calcSpec.js