Testing cosmic censorship conjecture near extremal black holes with cosmological constants