Add tests for tools.calculator