Fix test errors related to missing newlines in Test/Printer backend