Improved prettyprinting test