infix to postfix with some tests