Correctly report exit status of tests.
Fix broken splice! on some platforms.