apply unit test to polish notation