Added registry for validating uniqueness of name.

@destijl for review.
this could fail silently if the file read is empty for some reason.  Maybe just move the assertraises block into the loop so you test adding the same artifact again raises.