I am not sure I followed what you really wanted, but maybe this will help.
the pre, post, n notation for trees is when you do the recursion based off the current node.
consider a simple tree:
in order (n fix) means to go left, current, right.
so you would go left, print 1, current, print +, right, print 2:
1 + 2 which is a fairly standard human math expression.
human form requires smarts to inject () around terms, though; its why it isn't used in computers, you always convert in and out of it if you bother to display that type.
preorder, I don't recall that it is useful for expression trees.
that would be current, left, right, + 1 2
that leaves post order, or reverse polish.
left, right, current is post order.
1 2 + which is correct RPN and works with the standard push operands, for operators pop the stack twice, do it, push result back, when only 1 entry on stack and nothing left to push that is final answer.
here that is push 1, push 2, + ... pop 2, pop 1, add, push 3 back. stack size is 1 and nothing left in equation, so you stop.
If you knew all that, then any issues come with building the tree correctly or doing these things correctly. I didn't try to follow and debug what you had yet ..
RPN is non deterministic. That means there are multiple correct answers for an equation. The algorithm used to build it will be deterministic unless you add a randomizer component, but you should evaluate what you generate to see if it is right, not compare it to an 'expected' answer. This is just math ... you can rearrange the input equation too, eg 2+1 and 1+2 ... larger equations can flip flop quite a few terms in RPN and give the same final answer.