fix test condition