Fix the tests main exit code