add test code for prettify