added more tests for the prettyprinter and fixed bugs inside the pp