Fix test command exit code.