Sn in addpart

Added checks for sn duplicates in AddPart + test