add testcase
fix extra space after comma in pretty print