Fixed regression tests
Regression test does no longer deadlock.
Fork output writer
Fork output writer