implement addOperator() and addOperatorAlias() method, with tests