updated rpn test code