fixed test exit code