Fixes for test run exit codes.