fix jslint calculator-tail, add tests