fix bug return STATE_CRITICAL when test is ok