better test for pretty printing