Adding source and merged xml entities existance test after after merge