  def test_kb_invalid_entities():
      mykb = KnowledgeBase()
  
      # adding entities
      mykb.add_entity(entity_id="Q1", prob=0.5)
      mykb.add_entity(entity_id="Q2", prob=0.5)
      mykb.add_entity(entity_id="Q3", prob=0.5)
  
      # adding aliases - should fail because one of the given IDs is not valid
      with pytest.raises(ValueError):
          mykb.add_alias(alias="douglassss", entities=["Q2", "Q342"], probabilities=[0.8, 0.2])
 
</s> remove     mykb.add_entity(entity_id="Q1", prob=0.5)
    mykb.add_entity(entity_id="Q2", prob=0.5)
 </s> add     mykb.add_entity(entity_id="Q1", prob=0.9)
    mykb.add_entity(entity_id="Q2", prob=0.2)
    mykb.add_entity(entity_id="Q1", prob=0.9)
    mykb.add_entity(entity_id="Q2", prob=0.2)
  def test_kb_invalid_entities():
      mykb = KnowledgeBase()
  
      # adding entities
    mykb.add_entity(entity_id="Q1", prob=0.9)
    mykb.add_entity(entity_id="Q2", prob=0.2)
    mykb.add_entity(entity_id="Q1", prob=0.9)
    mykb.add_entity(entity_id="Q2", prob=0.2)
      mykb.add_entity(entity_id="Q3", prob=0.5)
  
      # adding aliases - should fail because one of the given IDs is not valid
      with pytest.raises(ValueError):
          mykb.add_alias(alias="douglassss", entities=["Q2", "Q342"], probabilities=[0.8, 0.2])
keep keep keep keep replace replace keep keep keep keep keep
 check and unit test in case prior probs exceed 1 
spacy/tests/pipeline/test_el.py