fix(test): Correct engine error reporting in test scripts (refs #4656)
fix(txt2pdf): Correctly handle errors from subprocesses in txt2pdf (refs #4676)