unit test addGhost works