Recreate function operatorEvaluate and testing this function