fix exit code assertion