html.parser.printer: fix tests, need to decrement before writing.