debug: remove spurious \n.
tests: more coordination between parent and child process.