added new unit tests. duplicates can't be saved.