Fixing issue where the primary_record is removed by a later update
Fixing unit tests
Merge pull request #486 from ORCID/dev-profileDeprecationProject

Dev profile deprecation project