fix bug for test complet condition check